package cn.hp.mapper;

import cn.hp.bean.Order;
import cn.hp.bean.OrderExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface OrderMapper {

    int insertSelective(Order order);

    List<Order> selectByExample(OrderExample orderExample);

    List<Order> selectOrdersList(Map<String, Object> map);

    int updateByPrimaryKeySelective(Order order);

    int updateByExampleSelective(@Param("record") Order order, @Param("example")  OrderExample orderExample);
}
